
import java.util.*;
public class Sales implements Iterable<Order>{
    private ArrayList<Order> orders=new ArrayList<Order>();
    public Sales(){ }
    public void addOrder(Order order){
        orders.add(order);
    }
    public Iterator<Order> iterator(){
        Iterator<Order> c=this.orders.iterator();
        return c;
    }
    public int getNumberOfOrders(){
        return orders.size();
    }
}
